/*
 * Sale.java
 *
 * Created on March 23, 2007, 5:34 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;

/**
 *
 * @author BrianB
 */
public class Sale extends RevenueSource{
    private int quantity = 0;
    private String productID;
    private Product product;
    /** Creates a new instance of Sale */
    public Sale(String id) {
        this.id = id;
    
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
        this.setDirty(true);
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public String getProductID() {
        return productID;
    }

    public void setProductID(String productID) {
        this.productID = productID;
    }

    public String getDescription() {
        return description;
    }
    
}
